/*--------------------------------------------------------------
# Sections General
--------------------------------------------------------------*/
section {
  padding: 60px 0;
  overflow: hidden;
}

.section-bg {
  background-color: lighten($secondary, 73);
}

.section-title {
  padding-bottom: 40px;

  h2 {
    font-size: 14px;
    font-weight: 500;
    padding: 0;
    line-height: 1px;
    margin: 0 0 5px 0;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: lighten($default, 40);
    font-family: $font-secondary;
  }

  h2::after {
    content: "";
    width: 120px;
    height: 1px;
    display: inline-block;
    background: lighten($primary, 15);
    margin: 4px 10px;
  }
  
  p {
    margin: 0;
    margin: 0;
    font-size: 36px;
    font-weight: 700;
    text-transform: uppercase;
    font-family: $font-secondary;
    color: $secondary;
  }

}

.breadcrumbs {
  margin-top: 73px;
  text-align: center;
  background:  $primary;
  padding: 30px 0;
  color: $white;

  @media (max-width: 992px) {
    margin-top: 63px;
  }
  
  h2 {
    font-size: 32px;
    font-weight: 500;
  }

  p {
    font-size: 14px;
    margin-bottom: 0;
  }


}

/*--------------------------------------------------------------
# About
--------------------------------------------------------------*/
.about {

  .content {
    h3 {
      font-weight: 600;
      font-size: 26px;
    }
  
    ul {
      list-style: none;
      padding: 0;
      li {
        padding-bottom: 10px;
      }
      i {
        font-size: 20px;
        padding-right: 4px;
        color: $primary;
      }
    }

    .learn-more-btn {
      background: $primary;
      color: $white;
      border-radius: 50px;
      padding: 8px 25px 9px 25px;
      white-space: nowrap;
      transition: 0.3s;
      font-size: 14px;
      display: inline-block;
      &:hover {
        background: darken($primary, 10);
        color: $white;
      }
    
      @media (max-width: 768px) {
        margin: 0 48px 0 0;
        padding: 6px 18px;
      }
    
    }
  }
}

/*--------------------------------------------------------------
# Counts
--------------------------------------------------------------*/
.counts {
  padding: 30px 0;

  .counters {
    span {
      font-size: 48px;
      display: block;
      color: $primary;
      font-weight: 700;
    }

    p {
      padding: 0;
      margin: 0 0 20px 0;
      font-family: $font-primary;
      font-size: 15px;
      font-weight: 600;
      color: $secondary;
    }
  }

}

/*--------------------------------------------------------------
# Why Us
--------------------------------------------------------------*/
.why-us {

  .content {
    padding: 30px;
    background: $primary;
    border-radius: 4px;
    color: $white;

    h3 {
      font-weight: 700;
      font-size: 34px;
      margin-bottom: 30px;
    }

    p {
      margin-bottom: 30px;
    }

    .more-btn {
      display: inline-block;
      background: rgba($white, .2);
      padding: 6px 30px 8px 30px;
      color: $white;
      border-radius: 50px;
      transition: all ease-in-out 0.4s;
      i {
        font-size: 14px;
      }

      &:hover {
        color: $primary;
        background: $white;
      }
    }

  
  }

  .icon-boxes {

    .icon-box {
      text-align: center;
      background: $white;
      padding: 40px 30px;
      width: 100%;
      border: 1px solid lighten($secondary, 70);

      i {
        font-size: 32px;
        padding: 18px;
        color: $primary;
        margin-bottom: 30px;
        background: lighten($primary, 36);
        border-radius: 50px;
      }

      h4 {
        font-size: 20px;
        font-weight: 700;
        margin: 0 0 30px 0;

      }
    
    
      p {
        font-size: 15px;
        color: lighten($default, 25);
      }
      
    }
  
  }

}

/*--------------------------------------------------------------
# Features
--------------------------------------------------------------*/
.features {
  padding-top: 0px;
  .icon-box {
    display: flex;
    align-items: center;
    padding: 20px;
    transition: 0.3s;
    border: 1px solid lighten($secondary, 70);

    i {
      font-size: 32px;
      padding-right: 10px;
      line-height: 1;
    }

    h3 {
      font-weight: 700;
      margin: 0;
      padding: 0;
      line-height: 1;
      font-size: 16px;
      a {
        color: $secondary;
        transition:0.3s;
      }
  
    }
    &:hover {
      border-color: $primary;
      h3 a {
        color: $primary;
      }
    }
  }
}

/*--------------------------------------------------------------
# Courses
--------------------------------------------------------------*/
.courses {

  .course-item {
    border-radius: 5px;
    border: 1px solid lighten($secondary, 70);
  }

  .course-content {
    padding: 15px;

    h3 {
      font-weight: 700;
      font-size: 20px;
      a {
        color: $secondary;
        transition: 0.3s;
        &:hover {
          color: $primary;
        }
      }
    }

    p {
      font-size: 14px;
      color: lighten($default, 20);
    }

    h4 {
      font-size: 14px;
      background: $primary;
      padding: 7px 14px;
      color: $white;
      margin: 0;
    }

    .price {
      margin: 0;
      font-weight: 700;
      font-size: 18px;
      color: $secondary;
    }

  }

  .trainer {
    padding-top: 15px;
    border-top: 1px solid lighten($secondary, 70);

    .trainer-profile {
      img {
        max-width: 50px;
        border-radius: 50px;
      }
      span {
        padding-left: 10px;
        font-weight: 600;
        font-size: 16px;
        color: lighten($secondary, 15);
      }
    }

    .trainer-rank {
      font-size: 18px;
      color: lighten($secondary, 20);
    }

  }

}

/*--------------------------------------------------------------
# Trainers
--------------------------------------------------------------*/
.trainers {

  .member {
    text-align: center;
    margin-bottom: 20px;
    background: $white;
    border: 1px solid lighten($secondary, 70);
    
    img {
      margin: -1px -1px 30px -1px;
    }

    .member-content {
      padding: 0 20px 30px 20px;
    }


    h4 {
      font-weight: 700;
      margin-bottom: 2px;
      font-size: 18px;
    }

    span {
      font-style: italic;
      display: block;
      font-size: 13px;
    }

    p {
      padding-top: 10px;
      font-size: 14px;
      font-style: italic;
      color: lighten($default, 40);
    }

    .social {
      margin-top: 15px;
      a {
        color: lighten($secondary, 30%);
        transition: 0.3s;
        &:hover {
          color: $primary;
        }

      }

      i {
        font-size: 18px;
        margin: 0 2px;
      }
    }
  }
}

/*--------------------------------------------------------------
# Testimonials
--------------------------------------------------------------*/
.testimonials {

  .testimonial-wrap {
    padding-left: 50px;
  }

  .testimonial-item {
    box-sizing: content-box;
    padding: 30px 30px 30px 60px;
    margin: 30px 15px;
    min-height: 200px;
    border: 1px solid lighten($secondary, 70);
    position: relative;
    background: $white;

    .testimonial-img {
      width: 90px;
      border-radius: 10px;
      border: 6px solid #fff;
      position: absolute;
      left: -45px;
    }

    h3 {
      font-size: 18px;
      font-weight: bold;
      margin: 10px 0 5px 0;
      color: #111;
    }

    h4 {
      font-size: 14px;
      color: #999;
      margin:0;
    }

    .quote-icon-left, .quote-icon-right {
      color: lighten($primary, 25);
      font-size: 26px;
    }

    .quote-icon-left {
      display: inline-block;
      left: -5px;
      position: relative;
    }

    .quote-icon-right {
      display: inline-block;
      right: -5px;
      position: relative;
      top:10px;
    }

    p {
      font-style: italic;
      margin: 15px auto 15px auto;
    }

  }

  .swiper-pagination {
    margin-top: 20px;
    position: relative;
  
    .swiper-pagination-bullet {
      width: 12px;
      height: 12px;
      background-color: #fff;
      opacity: 1;
      border: 1px solid $primary;
    }
  
    .swiper-pagination-bullet-active {
      background-color: $primary;
    }
  }

  @media (max-width: 767px ) {
    .testimonial-wrap {
      padding-left: 0;
    }
    
    .testimonial-item {
      padding: 30px;
      margin: 15px;
      .testimonial-img {
        position: static;
        left: auto;
      }
    }

  }
  
}

/*--------------------------------------------------------------
# Cource Details
--------------------------------------------------------------*/
.course-details {
  h3 {
    font-size: 24px;
    margin: 30px 0 15px 0;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
    &:before {
      content: '';
      position: absolute;
      display: block;
      width: 100%;
      height: 1px;
      background: lighten($secondary, 70);
      bottom: 0;
      left: 0;
    }
  
    &:after {
      content: '';
      position: absolute;
      display: block;
      width: 60px;
      height: 1px;
      background: $primary;
      bottom: 0;
      left: 0;
    }
  }

  .course-info {
    background: lighten($secondary, 73);
    padding: 10px 15px;
    margin-bottom: 15px;
    h5 {
      font-weight: 400;
      font-size: 16px;
      margin: 0;
      font-family: $font-secondary;
    }
    p {
      margin: 0;
      font-weight: 600;
    }

    a {
      color: lighten($secondary, 20);
    }
  }
}

/*--------------------------------------------------------------
# Cource Details Tabs
--------------------------------------------------------------*/
.cource-details-tabs {
  overflow: hidden;
  padding-top: 0;

  .nav-tabs {
    border: 0;
  }

  .nav-link {
    border: 0;
    padding: 12px 15px 12px 0;
    transition: 0.3s;
    color: $secondary;
    border-radius: 0;
    border-right: 2px solid lighten($secondary, 66);
    font-weight: 600;
    font-size: 15px;

    &:hover {
      color: $primary;
    }

    &.active {
      color: $primary;
      border-color: $primary;
    }
  }

  .tab-pane.active {
    animation: fadeIn 0.5s ease-out;
  }

  .details {
    h3 {
      font-size: 26px;
      font-weight: 600;
      margin-bottom: 20px;
      color: $secondary;
    }

    p {
      color: lighten($default, 20);

      &:last-child {
        margin-bottom: 0;
      }
    }
  }
  @media (max-width: 992px) {
    .nav-link {
      border: 0;
      padding: 15px;
      &.active {
        color: $white;
        background: $primary;
      }
    }
  }
}

/*--------------------------------------------------------------
# Events
--------------------------------------------------------------*/
.events {
  
  .card {
    border: 0;
    padding: 0 30px;
    margin-bottom: 60px;
    position: relative;
  }
  
  .card-img {
    width: calc(100% + 60px);
    margin-left: -30px;
    overflow: hidden;
    z-index: 9;
    border-radius: 0;
    img {
      max-width: 100%;
      transition: all 0.3s ease-in-out;
    }
  }

  .card-body {
    z-index: 10;
    background: $white;
    border-top: 4px solid $white;
    padding: 30px;
    box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.10);
    margin-top: -60px;
    transition: 0.3s;
  }

  .card-title {
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    a {
      color: $secondary;
      transition: 0.3s;
    }
  }

  .card-text {
    color: lighten($default, 10);
  }

  .read-more {
    a {
      color: lighten($default, 20);
      text-transform: uppercase;
      font-weight: 600;
      font-size: 12px;
      transition: 0.3s;
      &:hover {
        color: $primary;
      }
    }
  }

  .card:hover  {

    img {
      transform: scale(1.1);
    }

    .card-body {
      border-color: $primary;
      .card-title a {
        color: $primary;
      }
    }
  }

}

/*--------------------------------------------------------------
# Pricing
--------------------------------------------------------------*/
.pricing {

  .box {
    padding: 20px;
    background: #fff;
    text-align: center;
    border: 1px solid lighten($secondary, 70);
    border-radius: 0;
    position: relative;
    overflow: hidden;
  }

  h3 {
    font-weight: 400;
    margin: -20px -20px 20px -20px;
    padding: 20px 15px;
    font-size: 16px;
    font-weight: 600;
    color: lighten($default, 20);
    background: #f8f8f8;
  }

  h4 {
    font-size: 36px;
    color: $primary;
    font-weight: 600;
    font-family: $font-secondary;
    margin-bottom: 20px;

    sup {
      font-size: 20px;
      top: -15px;
      left: -3px;
    }

    span {
      color: #bababa;
      font-size: 16px;
      font-weight: 300;
    }
  }

  ul {
    padding: 0;
    list-style: none;
    color: $default;
    text-align: center;
    line-height: 20px;
    font-size: 14px;

    li {
      padding-bottom: 16px;
    }

    i {
      color: $primary;
      font-size: 18px;
      padding-right: 4px;
    }
    .na {
      color: #ccc;
      text-decoration: line-through;
    }
  }

  .btn-wrap {
    margin: 20px -20px -20px -20px;
    padding: 20px 15px;
    background: #f8f8f8;
    text-align: center;
  }

  .btn-buy {
    background: $primary;
    display: inline-block;
    padding: 8px 35px;
    border-radius: 50px;
    color: #fff;
    transition: none;
    font-size: 14px;
    font-weight: 400;
    font-family: $font-primary;
    font-weight: 600;
    transition: 0.3s;
    &:hover {
      background: darken($primary, 10);
    }
  }

  .featured {
    h3 {
      color: $white;
      background: $primary;
    }
  }

  .advanced {
    width: 200px;
    position: absolute;
    top: 18px;
    right: -68px;
    transform: rotate(45deg);
    z-index: 1;
    font-size: 14px;
    padding: 1px 0 3px 0;
    background: $primary;
    color: $white;
  }

}


/*--------------------------------------------------------------
# Contact
--------------------------------------------------------------*/
.contact {
  padding-top: 5px;
  .info {
    width: 100%;
    background: $white;

    i {
      font-size: 20px;
      color: $primary;
      float: left;
      width: 44px;
      height: 44px;
      background: lighten($primary, 36);
      display: flex;
      justify-content: center;
      align-items: center;
      border-radius: 50px;
      transition: all 0.3s ease-in-out;
    }

    h4 {
      padding: 0 0 0 60px;
      font-size: 22px;
      font-weight: 600;
      margin-bottom: 5px;
      color: $secondary;
    }

    p {
      padding: 0 0 0 60px;
      margin-bottom: 0;
      font-size: 14px;
      color: lighten($secondary, 20);
    }

    .email, .phone {
      margin-top: 40px;
    }

    .email:hover, .address:hover, .phone:hover {
      i {
        background: $primary;
        color: $white;
      }
    }
  }


  .php-email-form {
    width: 100%;
    background: #fff;

    .form-group {
      padding-bottom: 8px;
    } 
    
    .error-message {
      display: none;
      color: #fff;
      background: #ed3c0d;
      text-align: left;
      padding: 15px;
      font-weight: 600;
      & br + br {
        margin-top: 25px;
      }
    }
    
    .sent-message {
      display: none;
      color: #fff;
      background: #18d26e;
      text-align: center;
      padding: 15px;
      font-weight: 600;
    }
  
    .loading {
      display: none;
      background: #fff;
      text-align: center;
      padding: 15px;
  
      &:before {
        content: "";
        display: inline-block;
        border-radius: 50%;
        width: 24px;
        height: 24px;
        margin: 0 10px -6px 0;
        border: 3px solid #18d26e;
        border-top-color: #eee;
        animation: animate-loading 1s linear infinite;
      }
  
    }

    input, textarea {
      border-radius: 4px;
      box-shadow: none;
      font-size: 14px;
      &:focus {
        border-color: $primary;
      }
    }

    input {
      height: 44px;
    }

    textarea {
      padding: 10px 12px;
    }

    button[type="submit"] {
      background: $primary;
      border: 0;
      padding: 10px 35px;
      color: #fff;
      transition: 0.4s;
      border-radius: 50px;
      &:hover {
        background: darken($primary, 10);
      }
    }
  
  }

  @keyframes animate-loading {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
}

